home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / start.d / 10-save-dmidecode.sh next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  675b  |  13 lines

  1. #!/bin/sh
  2. # Paul Sladen, 2006-03-28
  3. # Save the 'dmidecode' data while we are running as root, so
  4. # that it can used later in '/usr/share/acpi-support/device-funcs'
  5. # which can be sourced by 'pmi' running as a user.
  6. #
  7. # Lets assume that this isn't particularly priviliged information...
  8.  
  9. dmidecode --string system-manufacturer|sed -e 's/ *$//' > /var/lib/acpi-support/system-manufacturer
  10. dmidecode --string system-product-name|sed -e 's/ *$//' > /var/lib/acpi-support/system-product-name
  11. dmidecode --string system-version     |sed -e 's/ *$//' > /var/lib/acpi-support/system-version
  12. dmidecode --string bios-version       |sed -e 's/ *$//' > /var/lib/acpi-support/bios-version
  13.